<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Classificados - Login</title>
</head>
<body>

	<f:view>

		<h2>Classificados</h2>

		<p>
			<h:outputText value="#{principal.msg}" style="color: #FF0000"></h:outputText>
			<h:outputText value="#{usuario.msg}"  style="color: #FF0000"></h:outputText>
		</p>

		<p>Informe login e senha para entrar no sistema.</p>
	
		<h:form>
			<h:panelGrid border="0" columns="2" style="background-color: #CCE0FF">
				<h:outputText value="Login: "></h:outputText>
				<h:inputText value="#{principal.login}"></h:inputText>
				<h:outputText value="Senha: "></h:outputText>
				<h:inputSecret value="#{principal.senha}"></h:inputSecret>
			</h:panelGrid><br/>
			<h:commandButton value="Efetur Login" action="#{principal.autentica}"></h:commandButton>
		</h:form>
		<br/>
		<h:form>
			<h:commandLink action="cadastroUsuario">
				<h:outputText value="Efetuar Cadastro"></h:outputText>
			</h:commandLink>
		</h:form>
	</f:view>

</body>
</html>